#pragma once
#include<queue>
#include<opencv2/opencv.hpp>

/*
 对传入的每一帧画面进行人脸抓取
 */

class FaceExtract
{
private:
    std::queue<cv::Mat> FACES;
    cv::CascadeClassifier hc;
    bool ErrorFlag;
public:
    FaceExtract(std::string path);
	~FaceExtract();
    cv::Mat GiveFace();
    bool HasError();
    bool AnalyzeFrame(cv::UMat &frame);
    operator bool();
};
